package com.ruoyi.category.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 商品分类对象 category
 * 
 * @author ruoyi
 * @date 2024-04-01
 */
public class Category extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 分类ID */
    private Long categoryId;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String categoryName;

    /** 分类层级 */
    @Excel(name = "分类层级")
    private Long categoryLevel;

    /** 图标 logo */
    @Excel(name = "图标 logo")
    private String categoryIcon;

    /** 口号 */
    @Excel(name = "口号")
    private String categorySlogan;

    /** 分类图 */
    @Excel(name = "分类图")
    private String categoryPic;

    /** 背景颜色 */
    @Excel(name = "背景颜色")
    private String categoryBgColor;

    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }
    public void setCategoryName(String categoryName) 
    {
        this.categoryName = categoryName;
    }

    public String getCategoryName() 
    {
        return categoryName;
    }
    public void setCategoryLevel(Long categoryLevel) 
    {
        this.categoryLevel = categoryLevel;
    }

    public Long getCategoryLevel() 
    {
        return categoryLevel;
    }
    public void setCategoryIcon(String categoryIcon) 
    {
        this.categoryIcon = categoryIcon;
    }

    public String getCategoryIcon() 
    {
        return categoryIcon;
    }
    public void setCategorySlogan(String categorySlogan) 
    {
        this.categorySlogan = categorySlogan;
    }

    public String getCategorySlogan() 
    {
        return categorySlogan;
    }
    public void setCategoryPic(String categoryPic) 
    {
        this.categoryPic = categoryPic;
    }

    public String getCategoryPic() 
    {
        return categoryPic;
    }
    public void setCategoryBgColor(String categoryBgColor) 
    {
        this.categoryBgColor = categoryBgColor;
    }

    public String getCategoryBgColor() 
    {
        return categoryBgColor;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("categoryId", getCategoryId())
            .append("categoryName", getCategoryName())
            .append("categoryLevel", getCategoryLevel())
            .append("parentId", getParentId())
            .append("categoryIcon", getCategoryIcon())
            .append("categorySlogan", getCategorySlogan())
            .append("categoryPic", getCategoryPic())
            .append("categoryBgColor", getCategoryBgColor())
            .toString();
    }
}
